Return to doc.sitecore.com

Valid for Sitecore 5.2, 5.1.1
  Chaining Data Providers
Prev Next

Any given <database> tag may optionally reference multiple data providers.  This indicates that Sitecore should call each data provider in turn when the Abstract Data Layer requests items from the given database.  Sitecore always passes a context object, called the CallContext, to each data provider in the chain, which allows individual data providers to control the chaining behavior.  Read more about the CallContext in the Reference section below.

The <dataProvider> tag also allows administrators to enable and disable individual methods or groups of methods for a given data provider, which is useful when chaining.  Read more about enabling and disabling methods in the Reference section below.

The Sitecore Security and Extranet databases provide an example of chained data providers.  Both these databases use a SQL Server database to store security information, but the templates that define the security items are stored in a separate XML file that is accessed via the TemplateFile data provider.


Prev Next